package com.dycx.user.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dycx.common.entity.CommonDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;


@EqualsAndHashCode(callSuper = true)
@Data
@TableName("user")
public class UserDO extends CommonDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Integer uid;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 姓名
     */
    private String realName;

    /**
     * 身份证号
     */
    private String idCard;


    private String wxUnionId;

    private String wxMpOpenId;

    private String wxMiniOpenId;

    private String wxAppOpenId;

    /**
     * 分享人uid
     */
    private Integer shareUid;

    /**
     * 会员类型
     */
    private Integer vipType;

    /**
     * 会员过期时间
     */
    private LocalDateTime vipExpiredTime;

    /**
     * 会员等级
     */
    private Integer vipGrade;

    /**
     * 代理等级
     */
    private Integer agencyGrade;

    /**
     * 状态
     */
    private Boolean status;


}
